Optimal. Leaf size=140 \[ -\frac{1}{4} d \log \left (x^2-x+1\right )+\frac{1}{4} d \log \left (x^2+x+1\right )+\frac{d x \left (1-x^2\right )}{6 \left (x^4+x^2+1\right )}-\frac{d \tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right )}{3 \sqrt{3}}+\frac{d \tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )}{3 \sqrt{3}}+\frac{2 e \tan ^{-1}\left (\frac{2 x^2+1}{\sqrt{3}}\right )}{3 \sqrt{3}}+\frac{e \left (2 x^2+1\right )}{6 \left (x^4+x^2+1\right )} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.218017, antiderivative size = 140, normalized size of antiderivative = 1., number of steps used = 17, number of rules used = 10, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.625 \[ -\frac{1}{4} d \log \left (x^2-x+1\right )+\frac{1}{4} d \log \left (x^2+x+1\right )+\frac{d x \left (1-x^2\right )}{6 \left (x^4+x^2+1\right )}-\frac{d \tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right )}{3 \sqrt{3}}+\frac{d \tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )}{3 \sqrt{3}}+\frac{2 e \tan ^{-1}\left (\frac{2 x^2+1}{\sqrt{3}}\right )}{3 \sqrt{3}}+\frac{e \left (2 x^2+1\right )}{6 \left (x^4+x^2+1\right )} \]
Antiderivative was successfully verified.
[In] Int[(d + e*x)/(1 + x^2 + x^4)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 39.6818, size = 126, normalized size = 0.9 \[ - \frac{d \log{\left (x^{2} - x + 1 \right )}}{4} + \frac{d \log{\left (x^{2} + x + 1 \right )}}{4} + \frac{\sqrt{3} d \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x}{3} - \frac{1}{3}\right ) \right )}}{9} + \frac{\sqrt{3} d \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x}{3} + \frac{1}{3}\right ) \right )}}{9} + \frac{2 \sqrt{3} e \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x^{2}}{3} + \frac{1}{3}\right ) \right )}}{9} + \frac{x \left (- d x^{2} + d - e x^{3} + e x\right )}{6 \left (x^{4} + x^{2} + 1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x+d)/(x**4+x**2+1)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 0.986055, size = 146, normalized size = 1.04 \[ \frac{d \left (x-x^3\right )+2 e x^2+e}{6 \left (x^4+x^2+1\right )}-\frac{\left (\sqrt{3}-11 i\right ) d \tan ^{-1}\left (\frac{1}{2} \left (\sqrt{3}-i\right ) x\right )}{6 \sqrt{6+6 i \sqrt{3}}}-\frac{\left (\sqrt{3}+11 i\right ) d \tan ^{-1}\left (\frac{1}{2} \left (\sqrt{3}+i\right ) x\right )}{6 \sqrt{6-6 i \sqrt{3}}}-\frac{2 e \tan ^{-1}\left (\frac{\sqrt{3}}{2 x^2+1}\right )}{3 \sqrt{3}} \]
Warning: Unable to verify antiderivative.
[In] Integrate[(d + e*x)/(1 + x^2 + x^4)^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.016, size = 146, normalized size = 1. \[{\frac{1}{4\,{x}^{2}+4\,x+4} \left ( \left ( -{\frac{d}{3}}-{\frac{e}{3}} \right ) x-{\frac{2\,d}{3}}+{\frac{e}{3}} \right ) }+{\frac{d\ln \left ({x}^{2}+x+1 \right ) }{4}}+{\frac{d\sqrt{3}}{9}\arctan \left ({\frac{ \left ( 1+2\,x \right ) \sqrt{3}}{3}} \right ) }-{\frac{2\,\sqrt{3}e}{9}\arctan \left ({\frac{ \left ( 1+2\,x \right ) \sqrt{3}}{3}} \right ) }-{\frac{1}{4\,{x}^{2}-4\,x+4} \left ( \left ({\frac{d}{3}}-{\frac{e}{3}} \right ) x-{\frac{2\,d}{3}}-{\frac{e}{3}} \right ) }-{\frac{d\ln \left ({x}^{2}-x+1 \right ) }{4}}+{\frac{d\sqrt{3}}{9}\arctan \left ({\frac{ \left ( 2\,x-1 \right ) \sqrt{3}}{3}} \right ) }+{\frac{2\,\sqrt{3}e}{9}\arctan \left ({\frac{ \left ( 2\,x-1 \right ) \sqrt{3}}{3}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x+d)/(x^4+x^2+1)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.777721, size = 130, normalized size = 0.93 \[ \frac{1}{9} \, \sqrt{3}{\left (d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{9} \, \sqrt{3}{\left (d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{4} \, d \log \left (x^{2} + x + 1\right ) - \frac{1}{4} \, d \log \left (x^{2} - x + 1\right ) - \frac{d x^{3} - 2 \, e x^{2} - d x - e}{6 \,{\left (x^{4} + x^{2} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)/(x^4 + x^2 + 1)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.273321, size = 219, normalized size = 1.56 \[ \frac{\sqrt{3}{\left (3 \, \sqrt{3}{\left (d x^{4} + d x^{2} + d\right )} \log \left (x^{2} + x + 1\right ) - 3 \, \sqrt{3}{\left (d x^{4} + d x^{2} + d\right )} \log \left (x^{2} - x + 1\right ) + 4 \,{\left ({\left (d - 2 \, e\right )} x^{4} +{\left (d - 2 \, e\right )} x^{2} + d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + 4 \,{\left ({\left (d + 2 \, e\right )} x^{4} +{\left (d + 2 \, e\right )} x^{2} + d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) - 2 \, \sqrt{3}{\left (d x^{3} - 2 \, e x^{2} - d x - e\right )}\right )}}{36 \,{\left (x^{4} + x^{2} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)/(x^4 + x^2 + 1)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 8.57345, size = 952, normalized size = 6.8 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x+d)/(x**4+x**2+1)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.273584, size = 135, normalized size = 0.96 \[ \frac{1}{9} \, \sqrt{3}{\left (d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{9} \, \sqrt{3}{\left (d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{4} \, d{\rm ln}\left (x^{2} + x + 1\right ) - \frac{1}{4} \, d{\rm ln}\left (x^{2} - x + 1\right ) - \frac{d x^{3} - 2 \, x^{2} e - d x - e}{6 \,{\left (x^{4} + x^{2} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)/(x^4 + x^2 + 1)^2,x, algorithm="giac")
[Out]